<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1 {
            border: 2px solid red;
            height: 500px;
            width: 1000px;
            background-color: aqua;
        }

        .box2 {
            width: 100px;
            height: 100px;
            background-color: blueviolet;
            animation-name: runing;
            animation-duration: 6s;
            animation-iteration-count: infinite;
        }

        @keyframes runing {
            20% {
                transform: translate(900px, 200px);
                animation-direction: reverse;
            }

            40% {
                transform: translate(0, 400px);
            }

            60% {
                transform: translate(900px, 200px);
            }
        }
    </style>
</head>

<body>
    <div class="title">生活的轨迹</div>
    <div class="box1">
        <div class="box2">
            <img src="岳建昌.jpg" width="100px" height="100px">
        </div>
    </div>
</body>

</html>